2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 x:Class="Microsoft.Samples.MSBuildG.Resources_Vista"
5 xmlns:wpf="clr-namespace:Microsoft.Samples.MSBuildG"
6 xmlns:dw="clr-namespace:Microsoft.Samples.MSBuildG" >
8 <!--Dialog Window Style-->
9 <Style x:Key="DialogWindowStyle" TargetType ="{x:Type dw:DialogWindow}">
10 <Setter Property ="BorderThickness" Value ="0"/>
11 <Setter Property ="WindowStyle" Value ="None"/>
12 <Setter Property ="Template">
14 <ControlTemplate TargetType ="{x:Type dw:DialogWindow}">
15 <Border Style="{DynamicResource WindowBorder}">
18 <!-- Begin Window Formatting and Bar -->
19 <Grid Style="{DynamicResource DialogWindowBar}">
21 <Grid.ColumnDefinitions>
22 <ColumnDefinition Width="Auto"/>
23 <ColumnDefinition Width="*"/>
24 <ColumnDefinition Width="Auto"/>
25 </Grid.ColumnDefinitions>
28 </Grid.RowDefinitions>
30 <StackPanel Style="{DynamicResource WindowControlButtons}">
31 <Button Name="CloseWindowButton" Click="CloseDialogWindow" Style ="{DynamicResource DialogCloseButton}">X</Button>
34 <TextBlock Name="WindowTitleBar" Style="{DynamicResource DialogWindowTitle}" Text="{TemplateBinding Title}" MouseLeftButtonDown="MouseDown" />
38 <DockPanel DockPanel.Dock="Bottom" Background ="#545A60">
39 <StackPanel Background ="#545A60" DockPanel.Dock ="Bottom" Orientation ="Vertical">
40 <Rectangle Fill ="#aaaaaa" Height ="1"/>
41 <Rectangle Fill ="#1F2227" Height ="1"/>
42 <StackPanel x:Name="ButtonBarPanel" Height ="36" Orientation ="Horizontal" Margin ="0,0,4,0" HorizontalAlignment ="Right" VerticalAlignment ="Center">
46 <Grid Style="{DynamicResource DialogContentGrid}">
47 <!--Begin Window Content-->
48 <ContentPresenter Content ="{TemplateBinding Content}" Margin ="4,4,4,4"/>
61 <!--Main Window Style-->
62 <Style x:Key="WindowStyle" TargetType ="{x:Type Window}">
63 <Setter Property ="BorderThickness" Value ="0"/>
64 <Setter Property ="WindowStyle" Value ="None"/>
65 <Setter Property ="Template">
67 <ControlTemplate TargetType ="{x:Type Window}">
69 <Border Style="{DynamicResource WindowBorder}">
72 <!-- Begin Window Formatting and Bar -->
73 <Grid Style="{DynamicResource WindowBar}">
74 <Grid.ColumnDefinitions>
75 <ColumnDefinition Width="Auto"/>
76 <ColumnDefinition Width="*"/>
77 <ColumnDefinition Width="Auto"/>
78 </Grid.ColumnDefinitions>
81 </Grid.RowDefinitions>
83 <!--Pre breaking change: IsEnabled="{Binding RelativeSource=/TemplatedParent, Path=ResizeMode, Converter={StaticResource MaxConverter}}">[]</Button> -->
84 <StackPanel Style="{DynamicResource WindowControlButtons}">
85 <Button Name="MinimizeWindowButton" Click="MinimizeWindow" Style ="{DynamicResource ControlButton}">_</Button>
86 <Button Name="MaximizeWindowButton" Click="MaximizeWindow" Style ="{DynamicResource ControlButton}">[]</Button>
87 <Button Name="CloseWindowButton" Click="CloseWindow" Style ="{DynamicResource CloseButton}">X</Button>
90 <TextBlock Name="WindowTitleBar" Style="{DynamicResource WindowTitle}" Text="{TemplateBinding Title}" MouseLeftButtonDown="MouseDown"/>
92 <Image Style="{DynamicResource WindowIcon}" Source="pack://application:,,,/Icons/Warning.ico"/>
96 <!--Begin Window Content-->
97 <ContentPresenter Content ="{TemplateBinding Content}"/>
108 <!--Navigation Window (used for Wizard) Style-->
109 <Style x:Key="NavWindowStyle" TargetType ="{x:Type Window}">
110 <Setter Property ="BorderThickness" Value ="0"/>
111 <Setter Property ="WindowStyle" Value ="None"/>
112 <Setter Property ="Template">
114 <ControlTemplate TargetType ="{x:Type Window}">
116 <Border Style="{DynamicResource WindowBorder}">
119 <!-- Begin Window Formatting and Bar -->
120 <Grid Style="{DynamicResource WindowBar}">
121 <Grid.ColumnDefinitions>
122 <ColumnDefinition Width="Auto"/>
123 <ColumnDefinition Width="*"/>
124 <ColumnDefinition Width="Auto"/>
125 </Grid.ColumnDefinitions>
126 <Grid.RowDefinitions>
128 </Grid.RowDefinitions>
130 <StackPanel Style="{DynamicResource WindowControlButtons}">
131 <Button Name="MinimizeWindowButton" Click="MinimizeWindow" Style ="{DynamicResource ControlButton}">_</Button>
132 <Button Name="MaximizeWindowButton" Click="MaximizeWindow" Style ="{DynamicResource ControlButton}">[]</Button>
133 <Button Name="CloseWindowButton" Click="CloseWindow" Style ="{DynamicResource CloseButton}">X</Button>
136 <TextBlock Name="WindowTitleBar" Style="{DynamicResource WindowTitle}" Text="{TemplateBinding Title}" MouseLeftButtonDown="MouseDown"/>
138 <Image Style="{DynamicResource WindowIcon}" Source="pack://application:,,,/Icons/Warning.ico"/>
142 <!--Begin Window Content-->
144 <Grid Style="{DynamicResource ContentGrid}">
146 <DockPanel Background ="#1F2227">
149 <StackPanel DockPanel.Dock="Top" Name="NavContainer" Orientation ="Vertical">
150 <StackPanel x:Name="NavigationBar" Orientation ="Horizontal" Height ="70" Background ="#5D5D5D">
151 <Button Name="NavigateBackButton" Click="NavigateBack" Style ="{DynamicResource NavButton}" Margin ="4,0,0,0" IsEnabled="false">
152 <Image Source ="pack://application:,,,/Icons/Warning.ico"/>
154 <Button Name="NavigateNextButton" Click="NavigateNext" Style ="{DynamicResource NavButton}">
155 <Image Source ="pack://application:,,,/Icons/Warning.ico"/>
159 <Rectangle Height ="1" Fill ="#aaaaaa" />
164 <Frame Name ="WizardFrame" VerticalAlignment="Stretch" Background ="black"></Frame>
178 <!-- Navigation Window (used for Wizard) Styles-->
180 <Storyboard x:Key="HideNavBar" BeginTime="{x:Null}" TargetProperty="(StackPanel.Opacity)">
181 <DoubleAnimation From="1" To="0" Duration="0:0:1" RepeatBehavior="1x"/>
184 <Style x:Key ="NavButton" TargetType ="{x:Type Button}">
185 <Setter Property ="Width" Value ="52"/>
186 <Setter Property ="Height" Value ="52"/>
187 <Setter Property ="Template">
189 <ControlTemplate TargetType ="{x:Type Button}">
191 <Ellipse Width ="52" Height ="52" StrokeThickness="5" Stroke="{DynamicResource NavButtonBorder}"/>
192 <Ellipse Name="TBack" Canvas.Top="6" Canvas.Left="6" Width ="40" Height ="40" StrokeThickness="1" Fill ="{DynamicResource NavButtonGradient}" Stroke ="darkblue"/>
193 <ContentPresenter Canvas.Top="11" Canvas.Left="13" Content ="{TemplateBinding Content}" Width ="28"/>
196 <ControlTemplate.Triggers>
197 <Trigger Property ="IsEnabled" Value ="False">
198 <Setter TargetName ="TBack" Property ="Ellipse.Fill" Value ="{DynamicResource NavButtonDisabled}"/>
199 <Setter TargetName ="TBack" Property ="Ellipse.Stroke" Value ="gray"/>
202 <Trigger Property ="IsPressed" Value ="True">
203 <Setter TargetName ="TBack" Property ="Ellipse.Fill" Value ="{DynamicResource NavButtonGradientReversed}"/>
206 </ControlTemplate.Triggers>
212 <LinearGradientBrush x:Key="NavButtonBorder" StartPoint="0,0" EndPoint ="0,1">
213 <LinearGradientBrush.GradientStops>
214 <GradientStop Color ="#454545" Offset ="0"/>
215 <GradientStop Color ="#747474" Offset ="0.5"/>
216 <GradientStop Color ="#dcdcdc" Offset ="0.7"/>
217 </LinearGradientBrush.GradientStops>
218 </LinearGradientBrush>
220 <LinearGradientBrush x:Key ="NavButtonGradient" StartPoint="1,0" EndPoint ="0,1">
221 <LinearGradientBrush.GradientStops>
222 <GradientStop Offset ="0" Color ="#A5D6FF"/>
223 <GradientStop Offset ="0.3" Color ="#73BDFF"/>
224 <GradientStop Offset ="0.5" Color ="#2C9DFF"/>
225 </LinearGradientBrush.GradientStops>
226 </LinearGradientBrush>
228 <LinearGradientBrush x:Key ="NavButtonGradientReversed" StartPoint="0,1" EndPoint ="1,0">
229 <LinearGradientBrush.GradientStops>
230 <GradientStop Offset ="0" Color ="#A5D6FF"/>
231 <GradientStop Offset ="0.3" Color ="#73BDFF"/>
232 <GradientStop Offset ="0.5" Color ="#2C9DFF"/>
233 </LinearGradientBrush.GradientStops>
234 </LinearGradientBrush>
237 <LinearGradientBrush x:Key ="NavButtonDisabled" StartPoint="1,0" EndPoint ="0,1">
238 <LinearGradientBrush.GradientStops>
239 <GradientStop Offset ="0" Color ="#E0E0E0"/>
240 <GradientStop Offset ="0.3" Color ="#CBCBCB"/>
241 <GradientStop Offset ="0.5" Color ="#A9A9A9"/>
242 </LinearGradientBrush.GradientStops>
243 </LinearGradientBrush>
246 <!-- Window Bar Styles -->
248 <LinearGradientBrush x:Key ="BorderBrush" StartPoint="0,0" EndPoint ="1,0">
249 <LinearGradientBrush.GradientStops>
250 <GradientStop Offset ="0.3" Color ="darkgray"/>
251 <GradientStop Offset ="0.6" Color ="gray"/>
252 <GradientStop Offset ="0.9" Color ="darkgray"/>
253 </LinearGradientBrush.GradientStops>
254 </LinearGradientBrush>
256 <LinearGradientBrush x:Key ="BarBrush" StartPoint="0,0" EndPoint ="0,1">
257 <LinearGradientBrush.GradientStops>
258 <GradientStop Offset ="0.1" Color ="#D9D9D9"/>
259 <GradientStop Offset ="0.3" Color ="#BFBFBF"/>
260 <GradientStop Offset ="0.6" Color ="#B5B5B5"/>
261 </LinearGradientBrush.GradientStops>
262 </LinearGradientBrush>
264 <LinearGradientBrush x:Key ="GrayGradient" StartPoint="0,0" EndPoint ="0,1">
265 <LinearGradientBrush.GradientStops>
266 <GradientStop Offset ="0" Color ="#E0E0E0"/>
267 <GradientStop Offset ="0.3" Color ="#CBCBCB"/>
268 <GradientStop Offset ="0.5" Color ="#A9A9A9"/>
269 </LinearGradientBrush.GradientStops>
270 </LinearGradientBrush>
272 <LinearGradientBrush x:Key ="BlueGradient" StartPoint="0,0" EndPoint ="0,1">
273 <LinearGradientBrush.GradientStops>
274 <GradientStop Offset ="0" Color ="#A5D6FF"/>
275 <GradientStop Offset ="0.3" Color ="#73BDFF"/>
276 <GradientStop Offset ="0.5" Color ="#2C9DFF"/>
277 </LinearGradientBrush.GradientStops>
278 </LinearGradientBrush>
281 <LinearGradientBrush x:Key ="RedGradient" StartPoint="0,0" EndPoint ="0,1">
282 <LinearGradientBrush.GradientStops>
283 <GradientStop Offset ="0" Color ="#FFC5C5"/>
284 <GradientStop Offset ="0.3" Color ="#FF9E9E"/>
285 <GradientStop Offset ="0.5" Color ="#FF6262"/>
286 </LinearGradientBrush.GradientStops>
287 </LinearGradientBrush>
289 <!-- The nice gray gradient behind all pages, including on non-wizards -->
290 <RadialGradientBrush x:Key="WizardPageBack" RadiusX="0.8" RadiusY ="0.8">
291 <RadialGradientBrush.GradientStops>
292 <GradientStop Color ="#4F5460" Offset ="0"/>
293 <GradientStop Color ="#1F2227" Offset ="0.47"/>
294 </RadialGradientBrush.GradientStops>
295 </RadialGradientBrush>
297 <LinearGradientBrush x:Key ="DarkGrayGradient" StartPoint="0,0" EndPoint ="0,1">
298 <LinearGradientBrush.GradientStops>
299 <GradientStop Offset ="0" Color ="#8D9196"/>
300 <GradientStop Offset ="0.3" Color ="#545A60"/>
301 <GradientStop Offset ="1" Color ="#545A60"/>
302 </LinearGradientBrush.GradientStops>
303 </LinearGradientBrush>
305 <Style x:Key ="WindowBorder" TargetType ="{x:Type Border}">
306 <Setter Property ="BorderThickness" Value ="2"/>
307 <Setter Property ="BorderBrush" Value ="{StaticResource BorderBrush}"/>
311 <Style x:Key ="WindowBar" TargetType ="{x:Type Grid}">
312 <Setter Property ="Background" Value ="{StaticResource BarBrush}"/>
313 <Setter Property ="DockPanel.Dock" Value ="Top"/>
314 <Setter Property ="Height" Value ="24"/>
315 <Setter Property ="VerticalAlignment" Value ="Center"/>
318 <Style x:Key ="DialogWindowBar" TargetType ="{x:Type Grid}" BasedOn="{StaticResource WindowBar}">
319 <Setter Property ="Height" Value ="20"/>
323 <Style x:Key ="WindowTitle" TargetType ="{x:Type TextBlock}">
324 <Setter Property ="Grid.Row" Value ="0"/>
325 <Setter Property ="Grid.Column" Value ="1"/>
326 <Setter Property ="FontFamily" Value ="Verdana"/>
327 <Setter Property ="FontSize" Value ="12"/>
328 <Setter Property ="Height" Value ="14"/>
331 <Style x:Key ="DialogWindowTitle" TargetType ="{x:Type TextBlock}" BasedOn="{StaticResource WindowTitle}">
332 <Setter Property ="FontSize" Value ="11"/>
333 <Setter Property ="Height" Value ="14"/>
334 <Setter Property ="Margin" Value ="4,2,2,2"/>
337 <Style x:Key ="WindowIcon" TargetType ="{x:Type Image}">
338 <Setter Property ="Grid.Row" Value ="0"/>
339 <Setter Property ="Grid.Column" Value ="0"/>
340 <Setter Property ="Width" Value ="16"/>
341 <Setter Property ="Height" Value ="16"/>
342 <Setter Property ="Margin" Value ="2,2,2,2"/>
345 <Style x:Key ="WindowControlButtons" TargetType ="{x:Type StackPanel}">
346 <Setter Property ="Grid.Row" Value ="0"/>
347 <Setter Property ="Grid.Column" Value ="2"/>
348 <Setter Property ="Orientation" Value ="Horizontal"/>
351 <!--Style for buttons which appear in dialogs-->
352 <Style x:Key ="DialogButton" TargetType ="{x:Type Button}">
353 <Setter Property ="Margin" Value ="2,2,2,2"/>
354 <Setter Property ="Foreground" Value ="white"/>
355 <Setter Property ="VerticalAlignment" Value ="Center"/>
356 <Setter Property ="Height" Value ="23"/>
357 <Setter Property ="Width" Value ="75"/>
359 <Setter Property ="Template">
361 <ControlTemplate TargetType ="{x:Type Button}">
362 <Grid VerticalAlignment ="Center">
363 <Rectangle Name="TBack" Width="{TemplateBinding Width}" Height ="{TemplateBinding Height}" Stroke ="white" Fill ="{StaticResource DarkGrayGradient}" RadiusX ="2" RadiusY ="2"/>
364 <Rectangle Name="BBack" Opacity="0" Width="{TemplateBinding Width}" Height ="{TemplateBinding Height}" Stroke ="white" Fill ="{StaticResource BlueGradient}" RadiusX ="2" RadiusY ="2"/>
365 <ContentPresenter Content="{TemplateBinding Content}" VerticalAlignment="Center" HorizontalAlignment ="Center"/>
368 <ControlTemplate.Triggers>
369 <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
372 <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0" To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
377 <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
380 <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1" To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
385 <Trigger Property ="IsEnabled" Value ="false">
386 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="#dddddd"/>
387 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
390 <Trigger Property ="IsFocused" Value ="true">
391 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{StaticResource GrayGradient}"/>
394 </ControlTemplate.Triggers>
401 <!--Style for "control buttons", the minimize and maximize buttons-->
403 <Style x:Key ="ControlButton" TargetType ="{x:Type Button}">
404 <Setter Property ="Width" Value ="18"/>
405 <Setter Property ="Height" Value ="16"/>
406 <Setter Property ="Margin" Value ="2,2,2,2"/>
407 <Setter Property ="Foreground" Value ="white"/>
408 <Setter Property ="IsTabStop" Value ="false"/>
410 <Setter Property ="Template">
412 <ControlTemplate TargetType ="{x:Type Button}">
414 <Rectangle Name="TBack" Width="18" Height ="16" Stroke ="white" Fill ="{StaticResource GrayGradient}" RadiusX ="2" RadiusY ="2"/>
415 <Rectangle Name="BBack" Opacity="0" Width="18" Height ="16" Stroke ="#001997" Fill ="{StaticResource BlueGradient}" RadiusX ="2" RadiusY ="2"/>
416 <ContentPresenter Content="{TemplateBinding Content}" Width ="8" HorizontalAlignment ="Center"/>
419 <ControlTemplate.Triggers>
420 <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
423 <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0" To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
428 <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
429 <EventTrigger.Actions>
432 <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1" To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
435 </EventTrigger.Actions>
438 <Trigger Property ="IsEnabled" Value ="false">
439 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="#dddddd"/>
440 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
443 </ControlTemplate.Triggers>
450 <Style x:Key ="CloseButton" TargetType ="{x:Type Button}">
451 <Setter Property ="Width" Value ="18"/>
452 <Setter Property ="Height" Value ="16"/>
453 <Setter Property ="Margin" Value ="2,2,4,2"/>
454 <Setter Property ="Foreground" Value ="white"/>
455 <Setter Property ="IsTabStop" Value ="false"/>
457 <Setter Property ="Template">
459 <ControlTemplate TargetType ="{x:Type Button}">
460 <Grid HorizontalAlignment ="Center">
461 <Rectangle Name="TBack" Width="18" Height ="{TemplateBinding Height}" Stroke ="white" Fill ="{StaticResource GrayGradient}" RadiusX ="2" RadiusY ="2"/>
462 <Rectangle Name="RBack" Width="18" Height ="{TemplateBinding Height}" Stroke ="#AF5C5C" Opacity="0" Fill ="{StaticResource RedGradient}" RadiusX ="2" RadiusY ="2"/>
463 <ContentPresenter Content="{TemplateBinding Content}" Width ="8" HorizontalAlignment ="Center"/>
466 <ControlTemplate.Triggers>
467 <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
468 <EventTrigger.Actions>
471 <DoubleAnimation Storyboard.TargetName="RBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0" To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
474 </EventTrigger.Actions>
477 <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
478 <EventTrigger.Actions>
481 <DoubleAnimation Storyboard.TargetName="RBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1" To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
484 </EventTrigger.Actions>
487 <Trigger Property ="IsEnabled" Value ="false">
488 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="#dddddd"/>
489 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
491 </ControlTemplate.Triggers>
500 <Style x:Key ="DialogCloseButton" TargetType ="{x:Type Button}" BasedOn="{StaticResource CloseButton}">
501 <Setter Property ="Width" Value ="18"/>
502 <Setter Property ="Height" Value ="14"/>
506 <Style x:Key ="DialogIcon" TargetType ="{x:Type Image}">
507 <Setter Property ="Width" Value ="48"/>
508 <Setter Property ="Margin" Value ="2,2,2,2"/>
511 <Style x:Key ="DialogMessage" TargetType ="{x:Type TextBlock}">
512 <Setter Property ="FontSize" Value ="14"/>
513 <Setter Property="Foreground" Value="white"/>
514 <Setter Property="TextWrapping" Value="Wrap"/>
515 <Setter Property ="Margin" Value ="8,2,8,2"/>
521 <Style TargetType="{x:Type Menu}">
522 <Setter Property="Background" Value="#545A60"/>
525 <Style x:Key="SubMenuItem" TargetType="{x:Type TextBlock}">
526 <Setter Property="Foreground" Value="black"/>
531 <Style TargetType="{x:Type ToolBar}">
532 <Setter Property="Background" Value="#545A60"/>
535 <Style x:Key="ToolBarCombo" TargetType="{x:Type ComboBox}">
536 <Setter Property="Background" Value="#545A60"/>
537 <Setter Property="Margin" Value="2,2,2,2"/>
538 <Setter Property="BorderBrush" Value="#cccccc"/>
539 <Setter Property ="Foreground" Value="#ffffff"/>
545 <Style TargetType ="{x:Type TextBlock}">
546 <Setter Property ="Foreground" Value ="white"/>
549 <Style TargetType ="{x:Type CheckBox}">
550 <Setter Property ="Foreground" Value ="white"/>
553 <Style x:Key ="DialogContentGrid" TargetType ="{x:Type Grid}">
554 <Setter Property ="Background" Value ="#1F2227"/>
555 <Setter Property ="VerticalAlignment" Value ="Stretch"/>
559 <Style x:Key ="ContentGrid" TargetType ="{x:Type Grid}">
560 <Setter Property ="Background" Value ="#545A60"/>
561 <Setter Property ="VerticalAlignment" Value ="Stretch"/>
566 <Style x:Key="NormalProperty" TargetType ="{x:Type TextBlock}">
567 <Setter Property ="Background" Value ="Transparent"/>
570 <Style x:Key="HighlightedProperty" TargetType ="{x:Type TextBlock}">
571 <Setter Property ="Background" Value ="Gray"/>
575 <!--Style for toolbar buttons -->
577 <Style x:Key="ToolbarButtonStyle" TargetType="{x:Type Button}">
578 <Setter Property ="Foreground" Value ="White"/>
579 <Setter Property ="VerticalAlignment" Value ="Center"/>
580 <Setter Property ="StackPanel.Margin" Value ="2,0,2,0"/>
581 <Setter Property ="Height" Value ="24"/>
582 <Setter Property ="Template">
584 <ControlTemplate TargetType ="{x:Type Button}">
585 <Grid VerticalAlignment ="Stretch" HorizontalAlignment="Stretch" Width ="{TemplateBinding Width}">
586 <Rectangle Name="TBack" Height="24" Width ="{TemplateBinding Width}"/>
587 <ContentPresenter Name="TContent" Content="{TemplateBinding Content}" Margin ="0,0,2,0"/>
589 <ControlTemplate.Triggers>
590 <Trigger Property ="IsMouseOver" Value="True">
591 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
592 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource GrayGradient}"/>
594 <Trigger Property ="IsPressed" Value="True">
595 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
596 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource BlueGradient}"/>
598 </ControlTemplate.Triggers>
604 <!-- Toggle button style -->
606 <Style x:Key="ToggleButtonStyle" TargetType="{x:Type ToggleButton}">
607 <Setter Property ="Template">
609 <ControlTemplate TargetType ="{x:Type ToggleButton}">
610 <Grid VerticalAlignment ="Stretch" HorizontalAlignment="Stretch" Width ="{TemplateBinding Width}">
611 <Rectangle Name="TBack" Height="24" Width ="{TemplateBinding Width}"/>
612 <ContentPresenter Name="TContent" Content="{TemplateBinding Content}"/>
614 <ControlTemplate.Triggers>
615 <Trigger Property ="IsMouseOver" Value="True">
616 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
617 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource GrayGradient}"/>
619 <Trigger Property ="IsChecked" Value="True">
620 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
621 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource BlueGradient}"/>
623 </ControlTemplate.Triggers>
629 <Style x:Key="ConditionButtonStyle" TargetType="{x:Type ToggleButton}" BasedOn="{StaticResource ToggleButtonStyle}">
630 <Setter Property ="Width" Value ="24"/>
635 <Style x:Key="WizardPageStyle" TargetType ="{x:Type wpf:WizardPageFunction}">
636 <Setter Property ="Template">
638 <ControlTemplate TargetType ="{x:Type wpf:WizardPageFunction}">
640 <Grid VerticalAlignment ="Stretch" HorizontalAlignment="Stretch">
641 <Grid VerticalAlignment ="Stretch" Background ="{StaticResource WizardPageBack}">
642 <StackPanel Orientation ="Vertical" VerticalAlignment ="Center" HorizontalAlignment="Center" Margin ="4,4,4,4">
643 <Grid HorizontalAlignment ="Left" VerticalAlignment ="Center">
644 <Grid.ColumnDefinitions>
645 <ColumnDefinition Width="180" />
647 </Grid.ColumnDefinitions>
648 <Grid.RowDefinitions>
653 </Grid.RowDefinitions>
657 <TextBlock Name="WizardTitle" Foreground="white" FontSize="18" Grid.Row ="0" Grid.Column ="0" Grid.ColumnSpan="2" Text="{TemplateBinding Title}" />
658 <TextBlock Name="WizardText" Foreground="white" FontSize="14" Grid.Row ="1" Grid.Column ="0" Grid.ColumnSpan="2" Text="{TemplateBinding Instructions}"/>
660 <Rectangle Grid.Row="2" Grid.Column ="0" Grid.ColumnSpan="2" Height="20"/>
662 <ContentPresenter Grid.Column="0" Grid.ColumnSpan="2" Grid.Row="3" Content="{TemplateBinding Content}"/>
667 <Grid x:Name="ErrorBubble" Width="250" Height ="Auto" Visibility="Collapsed">
668 <StackPanel Orientation="Vertical">
669 <StackPanel Orientation="Horizontal" Background="#dedede" VerticalAlignment ="Stretch" Margin="0,20,0,0">
670 <Image Width="36" Height="36" Margin ="4,4,4,4" Source="pack://application:,,,/Icons/Warning.ico"/>
671 <StackPanel Orientation ="Vertical" VerticalAlignment ="Center">
672 <TextBlock x:Name="ErrorBubbleTitle" Margin="4,4,4,4" FontSize="14" Foreground="steelblue">Error Title goes here</TextBlock>
673 <TextBlock x:Name="ErrorBubbleContent" Margin="4,4,4,4" FontSize="12" Foreground="#444444" Width="200" TextWrapping="Wrap">Error Title goes here</TextBlock>
676 <Polygon Points="0,0 30,0 15,20" Fill="#dedede" HorizontalAlignment="Center"/>
677 <!--15,20 0,40 30,40-->
688 <!-- Style for hover buttons that go from silver to blue -->
690 <Style x:Key ="WizardImageButton" TargetType ="{x:Type Button}">
691 <Setter Property ="Template">
693 <ControlTemplate TargetType ="{x:Type Button}">
695 <Rectangle Name ="TBack" Fill="{DynamicResource GrayGradient}" RadiusX="4" RadiusY="4" Stroke ="#cccccc" Width ="{TemplateBinding Width}" Height ="{TemplateBinding Height}"/>
696 <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
698 <ControlTemplate.Triggers>
699 <Trigger Property ="IsMouseOver" Value="True">
700 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#ffffff"/>
701 <Setter TargetName ="TBack" Property ="Rectangle.Fill" Value ="{DynamicResource BlueGradient}"/>
703 </ControlTemplate.Triggers>
710 <!-- The style of all comboboxes, including on non-wizards -->
712 <Style x:Key ="WizardComboBox" TargetType ="{x:Type ComboBox}">
713 <Setter Property ="Background" Value ="transparent"/>
714 <Setter Property ="ItemTemplate" Value ="{DynamicResource WizardComboItemTemplate}"/>
715 <Setter Property ="BorderBrush" Value ="#cccccc"/>
717 <Trigger Property ="IsMouseOver" Value="True">
718 <Setter Property="BorderBrush" Value ="white"/>
723 <!-- The style of the "Open in designer" button at the end of the wizard-->
725 <Style x:Key="WizardLinkButton" TargetType="{x:Type Button}">
726 <Setter Property="Cursor" Value="Hand"/>
727 <Setter Property ="Foreground" Value ="steelblue"/>
728 <Setter Property ="Template">
730 <ControlTemplate TargetType ="{x:Type Button}">
731 <ContentPresenter Content="{TemplateBinding Content}"/>
732 <ControlTemplate.Triggers>
733 <Trigger Property ="IsMouseOver" Value ="true">
734 <Setter Property ="Foreground" Value ="White"/>
736 </ControlTemplate.Triggers>
742 <DataTemplate x:Key ="WizardComboItemTemplate">
744 <ContentPresenter Content="{TemplateBinding Content}" />
748 <!-- The style of all textboxes, including on non-wizards -->
750 <Style x:Key ="WizardEntryBox" TargetType ="{x:Type TextBox}">
751 <Setter Property ="Foreground" Value ="white"/>
752 <Setter Property ="Background" Value ="transparent"/>
753 <Setter Property ="BorderBrush" Value ="#cccccc"/>
754 <Setter Property ="Padding" Value ="2,2,2,2"/>
756 <Trigger Property ="IsMouseOver" Value="True">
757 <Setter Property="BorderBrush" Value ="white"/>
759 <Trigger Property ="IsFocused" Value="True">
760 <Setter Property ="BorderBrush" Value ="white"/>
761 <Setter Property ="Background" Value ="#545A60"/>
767 <Style x:Key="TreeViewStyle" TargetType="{x:Type TreeView}">
768 <Setter Property="Border.BorderThickness" Value="1"/>
769 <Setter Property="Border.BorderBrush" Value="white"/>
770 <Setter Property="Foreground" Value="white"/>
776 <Style TargetType ="{x:Type TreeView}">
777 <Setter Property="Background" Value="transparent"/>
780 <Style x:Key ="ChooseButton" TargetType ="{x:Type Button}">
781 <Setter Property ="Width" Value ="100"/>
782 <Setter Property ="Height" Value ="100"/>
783 <Setter Property ="Margin" Value ="2,2,2,2"/>
784 <Setter Property ="Foreground" Value ="black"/>
786 <Setter Property ="Template">
788 <ControlTemplate TargetType ="{x:Type Button}">
789 <Grid HorizontalAlignment ="Center" VerticalAlignment ="Center">
790 <Rectangle Name="TBack" Width="100" Height ="100" Stroke ="#C8C8C8" Fill ="{StaticResource DarkGrayGradient}" RadiusX ="1" RadiusY ="1"/>
791 <Rectangle Name="BBack" Opacity="0" Width="100" Height ="100" Stroke ="#C8C8C8" Fill ="{StaticResource BlueGradient}" RadiusX ="1" RadiusY ="1"/>
792 <ContentPresenter HorizontalAlignment ="Center" Width="100" Content="{TemplateBinding Content}" Margin="2,2,2,2"/>
796 <ControlTemplate.Triggers>
798 <EventTrigger RoutedEvent="ButtonBase.MouseEnter">
799 <EventTrigger.Actions>
802 <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="0" To="1" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
805 </EventTrigger.Actions>
808 <EventTrigger RoutedEvent="ButtonBase.MouseLeave">
809 <EventTrigger.Actions>
812 <DoubleAnimation Storyboard.TargetName="BBack" Storyboard.TargetProperty="(Rectangle.Opacity)" From="1" To="0" Duration="0:0:0.6" RepeatBehavior="1x" AutoReverse="False"/>
815 </EventTrigger.Actions>
818 </ControlTemplate.Triggers>
826 <Style x:Key ="TabButton" TargetType ="{x:Type TabItem}">
827 <Setter Property ="Foreground" Value="white"/>
828 <Setter Property ="Template">
830 <ControlTemplate TargetType="{x:Type TabItem}">
831 <Grid Margin ="2,4,2,2">
832 <Rectangle Name="TBack" Fill="#000000" Stroke ="#aaaaaa" RadiusX ="4" RadiusY ="4" Width ="110" Height ="24" />
833 <ContentPresenter Name="TContent" Content="{TemplateBinding Header}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
835 <ControlTemplate.Triggers>
836 <Trigger Property ="IsSelected" Value ="True">
837 <Setter TargetName="TBack" Property ="Rectangle.Fill" Value ="{StaticResource GrayGradient}"/>
838 <Setter Property ="Foreground" Value="black"/>
839 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#444444"/>
841 <Trigger Property ="IsMouseOver" Value ="True">
842 <Setter TargetName="TBack" Property ="Rectangle.Fill" Value ="{StaticResource BlueGradient}"/>
843 <Setter Property ="Foreground" Value="white"/>
844 <Setter TargetName ="TBack" Property ="Rectangle.Stroke" Value ="#001997"/>
846 </ControlTemplate.Triggers>
852 <RadialGradientBrush x:Key ="TabGrayGradient" RadiusX="0.35" RadiusY ="3" Center="0.5,1.6">
853 <RadialGradientBrush.GradientStops>
854 <GradientStop Offset="0.5" Color ="gray"/>
855 <GradientStop Offset="1" Color ="black"/>
856 </RadialGradientBrush.GradientStops>
857 </RadialGradientBrush>
859 <RadialGradientBrush x:Key ="TabBlueGradient" RadiusX="0.35" RadiusY ="3" Center="0.5,1.6">
860 <RadialGradientBrush.GradientStops>
861 <GradientStop Offset="0.5" Color ="steelblue"/>
862 <GradientStop Offset="1" Color ="black"/>
863 </RadialGradientBrush.GradientStops>
864 </RadialGradientBrush>
866 </ResourceDictionary>